/*
 * 未填写人员 
 */
import 'package:flutter/material.dart';
import 'package:flutter_tags/flutter_tags.dart';

class UnfilledPer extends StatelessWidget {
  final items;
  UnfilledPer({Key key, @required this.items}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('未填写人员'),
        backgroundColor: Colors.red,
      ),
      body: _bodyWidget(),
    );
  }

  Widget _bodyWidget() {
    return Container(
      alignment: Alignment.center,
      padding: EdgeInsets.all(16.0),
      child: Column(
        children: <Widget>[
          Tags(
            itemCount: items.length, // required
            itemBuilder: (int index) {
              final item = items[index];
              return ItemTags(
                key: Key(index.toString()),
                index: index, // required
                title: item,
                activeColor: Colors.red,
                textStyle: TextStyle(
                  fontSize: 16,
                ),
              );
            },
          ),
        ],
      ),
    );
  }
}
